<?php
/*
 * File name : get.php
* Description : Black box test case
* Created By : Abhiraj Chauhan
*/
class get{ //test case for PHP
	
	public function get_content($a, $b){
	$c = $a+$b;
	
	return $c;
	}
}

class testGet{
	public function test_get() //Displaying test results
	{
		echo "Test case 1: Input values 3,4 Expected Result: 7 <br />";

		$a = 3;
		$b = 4;
		$expected = 7;

		$page = new get();
		$actual = $page->get_content($a, $b);

		echo "Actual Result: ".$actual;

		if ($actual == $expected)
			echo "<br />Test case Passed";
		else
			echo "<br />Test case Failed";

		echo "<br />Test case 2: Input values 4,4 Expected Result: 8<br />";

		$a = 4;
		$b = 4;
		$expected = 7;

		$page = new get();
		$actual = $page->get_content($a, $b+1);

		echo "<br />Actual Result: ".$actual;

		if ($actual == $expected)
			echo "<br />Test case Passed";
		else
			echo "<br />Test case Failed";

	}
}


$testpage=new testGet();
$testpage->test_get();


?>